#@layout()
<script>
	
var ue = UE.getEditor('container', {
	toolbars: [
	           ['fullscreen', 'source', 'undo', 'redo','bold', 'italic', 
	            'underline', 'fontborder', 'strikethrough', 'superscript', 
	            'subscript', 'removeformat', 'formatmatch', 'autotypeset', 
	            'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 
	            'insertorderedlist', 'insertunorderedlist']
	],
    autoHeightEnabled: true,
    autoFloatEnabled: true,
    initialFrameHeight:150,
    initialFrameWidth:500,
    textarea:"webSiteEmployee.content",
    elementPathEnabled:false
});


    $("#websiteemployee-add").validate({
        rules:{
                "websiteemployee.title":{
                    required:true
                },
                "websiteemployee.num":{
                    required:true
                },
                "websiteemployee.content":{
                    required:true
                }
        },
        messages:{

                "websiteemployee.title":{
                required:"请输入标题..."
                },
                "websiteemployee.num":{
                required:"请输入招聘人数..."
                },
                "websiteemployee.content":{
                required:"请输入内容信息..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/websiteemployee/doAdd",
        data:$("#websiteemployee-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="websiteemployee-add">
        #include("websiteemployee-form.html")
     </form>
#end